package cn.tedu.loding.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 购物车(Cart)实体类
 *
 * @author makejava
 * @since 2022-11-26 23:33:21
 */
@Data
public class CartAddNewDTO implements Serializable {

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true)
    @NotNull(message = "必须提交用户id")
    private Long userId;
    /**
     * 商品id
     */

    private Long productId;
    /**
     * 购买数量
     */
    @ApiModelProperty(value = "购买数量", required = true)
    @NotNull(message = "必须提交购买数量")
    private Long count;

}

